package com.laomuji.android.mvvm.base.rv

import androidx.recyclerview.widget.RecyclerView
import androidx.viewbinding.ViewBinding

/**
 * 简单封装一下ViewHolder
 * @author laomuji666
 * @since 2024/2/21
 */
abstract class BaseViewHolder<VB:ViewBinding, T>(protected val viewBinding: VB):RecyclerView.ViewHolder(viewBinding.root) {
    abstract fun setData(data:T,position:Int)
}